 
import { baseApi, baseApp } from '@/server/base'



export default [
  // login
  {
    url: `${baseApi}/api/apk/user/login`,
    type: "post",
    response: () => {
        return{
          "code": 200,
          "data": {
            "id": 1,
            "carid": "441343",
            "account": "zhansan",
            "pwd": null,
            "name": "Zhang, San",
            "ch_name": null,
            "img": null,
            "mail": "zhansan@qq.com",
            "manager": "Li si",
            "created_at": "2022-12-20 15:46:02",
            "updated_at": "2022-12-20 15:46:02"
          },
          "msg": ""
        }
    },
  },
  // register
  {
    url:`${baseApi}/api/apk/user/signup`,
    type: "post",
    response:()=>{
      return {
        "code": 200,
        "data": {
          "carid": "44134322",
          "mail": "mail",
          "updated_at": "2022-12-20 15:59:09",
          "created_at": "2022-12-20 15:59:09",
          "id": 3
        },
        "msg": ""
      }
    }
  }
]

 
export type LoginParams = {
  user: string
  pass: string
}

export type RegisterParams = {
  carid: string | number
  pass: string | number
  // mail: string
}
